import * as THREE from "three";
import { EffectComposer } from "three/examples/jsm/postprocessing/EffectComposer.js";
import { RenderPass } from "three/examples/jsm/postprocessing/RenderPass.js";
import { camera } from "./camera.js";
import { renderer } from "./renderer.js"; //渲染器对象
import { scene } from "./scene.js";

// renderer.render(scene, camera); //执行渲染操作
// 创建一个渲染器通道，场景和相机作为参数
var renderPass = new RenderPass(scene, camera);
var composer = new EffectComposer(renderer);
// 设置renderPass通道
composer.addPass(renderPass);

export { composer };
